home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / makefile.emx < prev    next >
Makefile  |  1998-10-09  |  4KB  |  186 lines

  1. #
  2. # Make file for use with emx-0.8f/gcc and ndmake 4.5
  3. # for compiling for MS-DOS
  4. # This version has had very little testing.
  5.  
  6. EMXPATH = c:/emx
  7.  
  8. # uncomment the following two lines if you have 
  9. # Johannes Martin's SVGA/VESA extensions
  10. # A VESA 1.2 compatible display, and the vesa_emx.com TSR are required.
  11. # "set term vgal" needs vesa_ibm.com with svgakit/vesa_emx version 1.2.
  12. # VESA = -DEMXVESA
  13. # VESALIB = -lvesa
  14.  
  15. # where to place gnuplot.gih helpfile
  16. HELPFILE = gnuplot.gih
  17.  
  18. CFLAGS = -c -O2 -DMSDOS -DDOS32 -DANSI_C -DREADLINE -DHAVE_STRNICMP
  19.  
  20. # see other terminal defines in term.h
  21. TERMFLAGS = -DEMXVGA $(VESA)
  22.  
  23. OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  24.     help.o internal.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o \
  25.     specfun.o scanner.o set.o show.o standard.o stdfn.o term.o time.o \
  26.     util.o version.o binary.o interpol.o fit.o matrix.o datafile.o alloc.o
  27.  
  28. CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  29.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  30.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  31. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  32.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pm.trm 
  33. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  34.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  35.     term\v384.trm term\x11.trm term\emxvga.trm
  36. CSOURCE8 = contour.c
  37.  
  38. all: gnuplotx.exe $(HELPFILE)
  39.  
  40. # default rules
  41. CCC = gcc $(CFLAGS) -o $*.o $*.c
  42.  
  43. gnuplotx.exe: $(OBJS) emxlink.rsp
  44.         gcc -o gnuplot @emxlink.rsp -lm -lgraph $(VESALIB)
  45.     emxbind $(EMXPATH)/bin/emx.exe gnuplot gnuplotx.exe -p -acmi
  46.  
  47. emxlink.rsp: makefile.emx
  48.     echo bitmap.o> emxlink.rsp
  49.     echo command.o>> emxlink.rsp
  50.     echo contour.o>> emxlink.rsp
  51.     echo eval.o>> emxlink.rsp
  52.     echo graphics.o>> emxlink.rsp
  53.     echo graph3d.o>> emxlink.rsp
  54.     echo help.o>> emxlink.rsp
  55.     echo internal.o>> emxlink.rsp
  56.     echo misc.o>> emxlink.rsp
  57.     echo parse.o>> emxlink.rsp
  58.     echo plot.o>> emxlink.rsp
  59.     echo plot2d.o>> emxlink.rsp
  60.     echo plot3d.o>> emxlink.rsp
  61.     echo readline.o>> emxlink.rsp
  62.     echo specfun.o>> emxlink.rsp
  63.     echo interpol.o>> emxlink.rsp
  64.     echo scanner.o>> emxlink.rsp
  65.     echo set.o>> emxlink.rsp
  66.     echo show.o>> emxlink.rsp
  67.     echo standard.o>> emxlink.rsp
  68.     echo stdfn.o>> emxlink.rsp
  69.     echo term.o>> emxlink.rsp
  70.     echo time.o>> emxlink.rsp
  71.     echo util.o>> emxlink.rsp
  72.     echo version.o>> emxlink.rsp
  73.     echo binary.o>> emxlink.rsp
  74.     echo fit.o>> emxlink.rsp
  75.     echo matrix.o>> emxlink.rsp
  76.     echo datafile.o>> emxlink.rsp
  77.     echo alloc.o>> emxlink.rsp
  78.  
  79. bitmap.o: bitmap.c bitmap.h plot.h
  80.     $(CCC)
  81.  
  82. binary.o: binary.c plot.h
  83.     $(CCC)
  84.  
  85. command.o: command.c plot.h setshow.h help.h fit.h
  86.     $(CCC) -DHELPFILE=\"$(HELPFILE)\"
  87.  
  88. contour.o: contour.c plot.h
  89.     $(CCC)
  90.  
  91. eval.o: eval.c plot.h
  92.     $(CCC)
  93.  
  94. graphics.o: graphics.c plot.h setshow.h
  95.     $(CCC)
  96.  
  97. graph3d.o: graph3d.c plot.h setshow.h
  98.     $(CCC)
  99.  
  100. fit.o: fit.c fit.h matrix.h plot.h
  101.     $(CCC)
  102.  
  103. matrix.o: matrix.c matrix.h fit.h
  104.     $(CCC)
  105.  
  106. help.o: help.c plot.h help.h
  107.     $(CCC)
  108.  
  109. internal.o: internal.c plot.h
  110.     $(CCC)
  111.  
  112. misc.o: misc.c plot.h setshow.h
  113.     $(CCC)
  114.  
  115. parse.o: parse.c plot.h
  116.     $(CCC)
  117.  
  118. plot.o: plot.c plot.h setshow.h
  119.     $(CCC)
  120.  
  121. plot2d.o: plot2d.c plot.h
  122.     $(CCC)
  123.  
  124. plot3d.o: plot3d.c plot.h
  125.     $(CCC)
  126.  
  127. readline.o: readline.c
  128.     $(CCC)
  129.  
  130. scanner.o: scanner.c plot.h
  131.     $(CCC)
  132.  
  133. set.o: set.c plot.h setshow.h
  134.     $(CCC)
  135.  
  136. show.o: show.c plot.h setshow.h
  137.     $(CCC) -DHELPFILE=\"$(HELPFILE)\"
  138.  
  139. specfun.o: specfun.c plot.h
  140.     $(CCC)
  141.  
  142. interpol.o: interpol.c plot.h setshow.h
  143.     $(CCC)
  144.  
  145. standard.o: standard.c plot.h
  146.     $(CCC)
  147.  
  148. stdfn.o: stdfn.c stdfn.h
  149.     $(CCC)
  150.  
  151. term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  152.     $(CCC) $(TERMFLAGS) -Iterm -I.
  153.  
  154. time.o : time.c
  155.     $(CCC)
  156.  
  157. util.o: util.c plot.h
  158.     $(CCC)
  159.  
  160. version.o: version.c
  161.     $(CCC)
  162.  
  163. # convert gnuplot.doc to gnuplot.gih
  164. doc2gih.exe: docs\doc2gih.c docs\termdoc.c
  165.     gcc -o doc2gih -I. docs/doc2gih.c docs/termdoc.c
  166.     emxbind $(EMXPATH)/bin/emx.exe doc2gih doc2gih.exe
  167.  
  168. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  169.     doc2gih docs\gnuplot.doc $(HELPFILE)
  170.  
  171. clean:
  172.     del *.o
  173.     del emxlink.rsp
  174.     del gnuplot
  175.     del doc2gih
  176.  
  177. # veryclean target - remove all files created by the makefile
  178.  
  179. veryclean: clean
  180.     del gnuplot.exe
  181.     del doc2gih.exe
  182.     del gnuplot.gih
  183.  
  184.  
  185.